package cn.myzqu.sign.message.server.dao;


import cn.myzqu.sign.message.server.entity.OsMessage;
import cn.myzqu.sign.message.server.vo.GroupMessageVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OsMessageMapper extends BaseMapper<OsMessage> {


    /**
     * 根据消息发送者分组，查询最新消息
     * @param page
     * @param userId
     * @return
     */
    List<GroupMessageVO> selectUserMessageGroupBySender(IPage page, @Param("userId") Integer userId);


}